<?php 
function getQuote($symbol) { 
    require('class/CALCULATOR.php');
    $calc = new CALCULATOR();
    $x = $calc->calc($symbol);
    return $x; 
} 

ini_set("soap.wsdl_cache_enabled", "0"); // disabling WSDL cache 
$server = new SoapServer("calc.wsdl"); 
$server->addFunction("getQuote"); 
$server->handle(); 
?>
